import { login, getRoute, getUserInfo } from "./main/login"
import { getAllUser, getAllDepartment, getAllRole, getAllMenu } from "./main/system"
import { postAddRoleData, getMenuByRoleId } from "./main/role"

import {
  IData,
  IDepartment,
  IListType,
  ILoginData,
  ILoginParams,
  IRole,
  IUser,
  IMenu
} from "./type"

export {
  login,
  getRoute,
  getUserInfo,
  getAllUser,
  getAllDepartment,
  getAllRole,
  getAllMenu,
  postAddRoleData,
  getMenuByRoleId
}

export type { IData, IDepartment, IListType, ILoginData, ILoginParams, IRole, IUser, IMenu }
